package common;

public class Player {

	public Player(String firstName, String lastName, int age, String userName,
			String password, String iPAddress) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.userName = userName;
		this.password = password;
		this.iPAddress = iPAddress;
		this.online = false;
	}

	private String firstName;

	private String lastName;

	private int age;

	private String userName;

	private String password;

	private String iPAddress;

	private boolean online;

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIPAddress() {
		return iPAddress;
	}

	public void setIPAddress(String iPAddress) {
		this.iPAddress = iPAddress;
	}

	public boolean isOnline() {
		return online;
	}

	public void setOnline(boolean online) {
		this.online = online;
	}

	public String toString(){
		return "firstName: "+ ((this.firstName!=null)?this.firstName:" ") +
				"; lastName: "+ ((this.lastName!=null)?this.lastName:" ") + 
				"; age: "+ this.age + 
				"; userName: "+ ((this.userName!=null)?this.userName:" ") + 
				"; iPAddress: "+ ((this.iPAddress!=null)?this.iPAddress:" ") + 
				"; online: "+ this.online;
	}
	
}